#
# Be sure to run `pod lib lint FGChatUI.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'FGChatUI'
  s.version          = '1.0.8'
  s.summary          = '飞鸽传书聊天UI'

# This description is used to generate tags and improve search results.
#   * Think: What does it do? Why did you write it? What is the focus?
#   * Try to keep it short, snappy and to the point.
#   * Write the description between the DESC delimiters below.
#   * Finally, don't worry about the indent, CocoaPods strips it!

  s.description      = <<-DESC
TODO: Add long description of the pod here.
                       DESC

  s.homepage         = 'https://gitee.com/huangchangweng/fgchat-ui'
  # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { 'huangchangweng' => '599139419@qq.com' }
  s.source           = { :git => 'https://gitee.com/huangchangweng/fgchat-ui.git', :tag => s.version.to_s }
  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

  s.ios.deployment_target = '10.0'

  s.source_files = 'FGChatUI/Classes/FGChat/FGChatUI.h'
  s.resources   = 'FGChatUI/Assets/*'
  
  s.static_framework = true
  
  # 由于 lame.a
  s.xcconfig = {
    'ENABLE_BITCODE' => 'NO'
  }
  
  # FGChat
  s.subspec 'FGChat' do |ss|
    ss.source_files = 'FGChatUI/Classes/FGChat/**/*'
    ss.dependency 'SDWebImage', '~> 5.13.0'
    ss.dependency 'YYCache', '~> 1.0.4'
    ss.dependency 'AFNetworking', '~> 4.0.1'
    ss.vendored_libraries = 'FGChatUI/Classes/FGChat/Utils/libmp3lame.a'
    ss.dependency 'FGChatUI/FGKeyboard'
  end
  
  # FGKeyboard
  s.subspec 'FGKeyboard' do |ss|
    ss.source_files = 'FGChatUI/Classes/FGKeyboard/*.{h,m}'
  end
  
end
